package com.atguigu.spzx.common.constant;

//线上状态：0-初始值，1-上架，-1-自主下架
public enum ProductStatusEnum {

    INIT(0,"初始值"),
    ON_SHELF(1,"上架"),
    OFF_SHELF(-1,"自主下架"),
    ;

    private Integer code;
    private String desc;

    ProductStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }
}
